<template>
  <div class="single-user-view">
    <h3>User Details</h3>
    <p><strong>Username:</strong> {{ user.username }}</p>
    <p><strong>Nickname:</strong> {{ user.nickName }}</p>
    <p><strong>Password:</strong> {{ user.password }}</p>
    <button @click="$emit('close')">Close</button>
  </div>
</template>

<script setup>
/* eslint-disable no-undef */
defineProps({
  user: {
    type: Object,
    required: true,
  },
});
</script>

<style scoped>
.single-user-view {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 20px auto;
}

button {
  background-color: #e74c3c;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #c0392b;
}
</style>
